<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css" />
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <form>
      <div class="row">
        <div class="col-lg-12">
          <section class="panel">
            <header class="panel-heading">
              线索信息
            </header>
            <div class="panel-body bio-graph-info">

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目类型</label>
                <div class="col-sm-10">
                  <select name="proType" id="proType" ng-model="type" class="form-control" disabled>
                    <option value="">请选择</option>
                    <option value="ZL">战略类项目</option>
                    <option value="YF">研发类项目</option>
                    <option value="XS">销售类项目</option>
                    <option value="BM">部门类项目</option>
                    <option value="SW">事务类项目</option>
                    <option value="CS">内部测试类项目</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">所属公司*</label>
                <div class="col-sm-10">
                  <select name="company" id="companys" class="form-control" onchange="findDept()">
                    <option ng-repeat="d in comp" value="{{d.companyId}}">{{d.company}}</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">所属部门*</label>
                <div class="col-sm-10">
                  <select class="form-control" name="department" ng-model="department">
                    <option value="">请选择</option>
                    <option ng-repeat="d in dept" value="{{d.departmentCode}}">{{d.departmentName}}</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm" ng-if="showArea">
                <label class="col-sm-2 control-label">项目区域</label>
                <div class="col-sm-10">
                  <select name="area" class="form-control" ng-model="proArea">
                    <option value="">请选择</option>
                    <option ng-repeat="d in area" value="{{d.city}}">{{d.city}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCus">
                <label class="col-sm-2 control-label">客户名称</label>
                <div class="col-sm-10">
                  <input type="text" id="cus" name="cusName" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                    value="{{cusName}}" class="form-control">
                  <input type="hidden" value="{{cusId}}" name="cusId" id="cusId" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目名称*</label>
                <div class="col-sm-10">
                  <input type="text" name="proName" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" id="proName"
                    value="{{proName}}" maxlength="50" class="form-control" placeholder="客户名称+产品名称">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">优先级</label>
                <div class="col-sm-10">
                  <select name="clueLv" ng-model="clueLv" class="form-control" id="clueLv" certus-required>
                    <option value="0">请选择</option>
                    <option value="3">高</option>
                    <option value="2">中</option>
                    <option value="1">低</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">紧急性</label>
                <div class="col-sm-10">
                  <select name="urgency" class="form-control" ng-model="urgency" id="urgency" certus-required>
                    <option value="0">不紧急</option>
                    <option value="1">紧急</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">重要性</label>
                <div class="col-sm-10">
                  <select name="importance" class="form-control" ng-model="importance" id="importance" certus-required>
                    <option value="0">一般</option>
                    <option value="1">重要</option>
                    <option value="2">战略</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCompare">
                <label class="col-sm-2 control-label">预计比拼类测试</label>
                <div class="col-sm-10">
                  <select name="isCompare" ng-model="isCompare" class="form-control" certus-required>
                    <option value="">请选择</option>
                    <option value="1">有</option>
                    <option value="0">无</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showSign">
                <label class="col-sm-2 control-label">预签单日期</label>
                <div class="col-sm-10">
                  <input id="datetime" name="divineSignDate" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" type="text"
                    value="{{divineSignDate}}" class="form-control" certus-required>
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showHk">
                <label class="col-sm-2 control-label">预回款日期</label>
                <div class="col-sm-10">
                  <input id="datetime-1" name="divineHkDate" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" type="text"
                    value="{{divineHkDate}}" class="form-control" certus-required>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">线索价值点描述</label>
                <div class="col-sm-10">
                  <textarea name="clueDesc" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                    maxlength="250" certus-required placeholder="最多250个字">{{clueDesc}}</textarea>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showPolucy">
                <label class="col-sm-2 control-label">客户决策链和关键描述</label>
                <div class="col-sm-10">
                  <textarea name="cusPolicy" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                    maxlength="250" certus-required>{{cusPolicy}}</textarea>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showCompe">
                <label class="col-sm-2 control-label">竞争信息</label>
                <div class="col-sm-10">
                  <textarea name="competitor" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                    maxlength="250" certus-required>{{competitor}}</textarea>
                </div>
              </div>
              <!--<div class="form-group customerForm" ng-show="showFinish">-->
              <!--<label class="col-sm-2 control-label">预计完成时间</label>-->
              <!--<div class="col-sm-10">-->
              <!--<input id="datetime-3" name="divineFinishTime" type="text" value="{{divineFinishTime | date:'yyyy-MM-dd'}}"-->
              <!--class="form-control">-->
              <!--</div>-->
              <!--</div>-->
              <div class="form-group customerForm" ng-show="showVersion">
                <label class="col-sm-2 control-label">预计版本发布时间</label>
                <div class="col-sm-10">
                  <input id="datetime-4" name="divineVersionTime" certus-required onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                    ng-model="divineVersionTime" type="text" value="{{divineVersionTime | date:'yyyy-MM-dd'}}"
                    class="form-control">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">项目周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="datetime-5" name="startTime" placeholder="开始日期" value="{{startTime}}">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="datetime-6" name="endTime" placeholder="结束日期" value="{{endTime}}">
                    </div>
                  </div>

                  <!-- <input id="datetime-5" name="startTime" type="text" value="{{startTime}}" style="width: 48%;" class="form-control">
                  <input id="datetime-6" name="endTime" certus-required type="text" style="width:48%;position:absolute;left: 50%;bottom: 0px;"
                    value="{{endTime}}" class="form-control"> -->
                </div>
              </div>
              <div class="form-group customerForm" id="pdLine" ng-show="showPolucy">
                <label class="col-sm-2 control-label">产品线*</label>
                <div class="col-sm-10">
                  <!--start-->
                  <div ng-repeat="x in dd">

                    <div ng-repeat="d in x.deptList">
                      <div class="checkbox">
                        <label>
                          <input type="checkbox" onclick="ckIsN(this.value)" value="{{d.departmentCode}}">
                          {{d.departmentName}}
                        </label>
                      </div>
                    </div>
                  </div>
                  <div class="checkbox">
                    <label><input type="checkbox" onclick="ckIsN(this.value)" value="N"> 无</label>
                  </div>
                  <!--end-->
                </div>
              </div>

              <!--<div class="form-group customerForm">-->
              <!--<label class="col-sm-2 control-label">项目介绍</label>-->
              <!--<div class="col-sm-10">-->
              <!--<a class="update-icon" onclick="showfile();">上传附件</a>-->
              <!--</div>-->
              <!--</div>-->
            </div>

          </section>
          <!--<div class="hidefile">-->
          <!--<section class="panel">-->
          <!--<header class="panel-heading">-->
          <!--文件上传-->
          <!--</header>-->
          <!--<div class="panel-body">-->
          <!--<div ng-include="'templates/upload-file.html'"></div>-->

          <!--<p class="default-buttons">-->
          <!--<a href="javascript:void(0);" class="button-back btn btn-info" onclick="hidefile()">取消</a>-->
          <!--<a href="javascript:void(0);" class="button-next  btn btn-info toRegu">提交</a>-->
          <!--</p>-->
          <!--</div>-->
          <!--</section>-->
          <!--</div>-->
          <section class="panel">
            <header class="panel-heading">
              线索阶段商务预测(只用于本阶段)
            </header>
            <div class="panel-body bio-graph-info">

              <div class="form-group customerForm" ng-if="showMoney">
                <label class="col-sm-2 control-label">销售额</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineMoney"
                    certus-required value="{{divineMoney}}" min="0" class="form-control">
                  <input type="hidden" name="dmId" value="{{dmId}}">
                </div>
              </div>
              <input type="hidden" value="{{isCompare}}" name="isCompare" />
              <div class="form-group customerForm" ng-if="showBudget">
                <label class="col-sm-2 control-label">客户预算</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="cusBudget"
                    value="{{cusBudget}}" certus-required min="0" class="form-control">
                  <input type="hidden" name="bumId" value="{{bumId}}">
                </div>
              </div>

              <hr />
              <div class="form-group customerForm" ng-if="showCtMoney">
                <label class="col-sm-2 control-label">客户交际费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineContactMoney"
                    certus-required value="{{divineContactMoney}}" min="0" class="form-control">
                  <input type="hidden" name="cmId" value="{{cmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showCtMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="ctStartTime" name="ctStartTime" value="{{ctStartTime}}" placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="ctEndTime" name="ctEndTime" value="{{ctEndTime}}" placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showCtMoney">
                <label class="col-sm-2 control-label">费用说明</label>
                <div class="col-sm-10">
                  <input type="text" name="dcMoneyDesc" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" value="{{dcMoneyDesc}}"
                    class="form-control">
                </div>
              </div>
              <hr />
              <div class="form-group customerForm" ng-if="showBsMoney">
                <label class="col-sm-2 control-label">差旅费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divineBusinessMoney"
                    certus-required value="{{divineBusinessMoney}}" min="0" class="form-control">
                  <input type="hidden" name="bmId" value="{{bmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showBsMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="bsStartTime" name="bsStartTime" value="{{bsStartTime}}" placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="bsEndTime" name="bsEndTime" value="{{bsEndTime}}" placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showBsMoney">
                <label class="col-sm-2 control-label">费用说明</label>
                <div class="col-sm-10">
                  <input type="text" name="dbMoneyDesc" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" value="{{dbMoneyDesc}}"
                    class="form-control">
                </div>
              </div>
              <hr />
              <div class="form-group customerForm" ng-if="showPhMoney">
                <label class="col-sm-2 control-label">采购费用</label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" name="divinePurchaseMoney"
                    certus-required value="{{divinePurchaseMoney}}" min="0" class="form-control">
                  <input type="hidden" name="pmId" value="{{pmId}}">
                </div>
              </div>
              <div class="form-group customerForm" ng-show="showPhMoney">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="phStartTime" name="phStartTime" value="{{phStartTime}}" placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="phEndTime" name="phEndTime" value="{{phEndTime}}" placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm" ng-if="showPhMoney">
                <label class="col-sm-2 control-label">费用说明</label>
                <div class="col-sm-10">
                  <input type="text" name="dpMoneyDesc" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" value="{{dpMoneyDesc}}"
                    maxlength="120" class="form-control">
                </div>
              </div>

              <input type="hidden" value="{{proId}}" name="proId" id="proId" />
              <input type="hidden" value="{{userId}}" name="userId" id="userId" />
            </div>
          </section>
          <section class="panel hideother" style="display: none;">
            <header class="panel-heading add-heading">
              费用信息
            </header>
            <div class="panel-body">

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">预算金额<span>*</span></label>
                <div class="col-sm-10">
                  <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" min="0" value=""
                    class="form-control" id="bugetMoney">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">使用周期*</label>
                <div class="col-sm-10">
                  <div class="row">
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="oStartTime" name="oStartTime" placeholder="开始日期">
                    </div>
                    <div class="col-lg-6">
                      <input type="text" class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" certus-required
                        id="oEndTime" name="oEndTime" placeholder="结束日期">
                    </div>
                  </div>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">事由<span>*</span></label>
                <div class="col-sm-10">
                  <textarea class="form-control" id="comments" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                    placeholder="字数限制(120字以内)" maxlength="120"></textarea>
                </div>
              </div>

              <input type="hidden" value="0" id="warrId" />
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="hideother();">取消</a>
                <a href="javascript:void(0);" class="button-next  btn btn-info addMoney">提交</a>
              </p>
            </div>
          </section>
          <section class="panel hideprobox">
            <header class="panel-heading add-heading">
              其他费用
              <i class="add-icon icon-plus" onclick="showother()"> 新增</i>
            </header>
            <div class="panel-body bio-graph-info">
              <div id="other1Container" class="dlshouwen-grid-container"></div>
            </div>
          </section>

          <section class="panel hiderl" style="display: none;">
            <header class="panel-heading">
              人天预估
            </header>
            <div class="panel-body">

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">角色*</label>
                <div class="col-sm-10">
                  <select name="rluserName" id="rluserName" class="form-control">
                    <option value="">请选择</option>
                    <option ng-repeat="d in rlList" value="{{d.roleId}}">{{d.roleName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">级别*</label>
                <div class="col-sm-10">
                  <select name="rtMoney" class="form-control" id="rtMoney">
                    <option value="1">低</option>
                    <option value="2">中</option>
                    <option value="3">高</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">周期*</label>
                <div class="col-sm-10">
                  <input id="rlBeginTime" name="rlBeginTime" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');" placeholder="开始日期"
                         type="text" value="" style="width: 48%;" class="form-control">
                  <input id="rlEndTime" name="rlEndTime" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                         type="text" placeholder="结束日期" style="width:48%;position:absolute;left: 50%;bottom: 0px;" value=""
                         class="form-control">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">说明</label>
                <div class="col-sm-10">
                <textarea class="form-control" id="rlComments" autocomplete="off" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                          maxlength="120" placeholder="字数限制(120字以内)"></textarea>
                </div>
              </div>
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="hideRl();">取消</a>
                <a href="javascript:void(0);" class="button-next  btn btn-info rlSubmit">提交</a>
              </p>
            </div>
          </section>
          <section class="panel hideprobox">
            <header class="panel-heading add-heading">
              人天预估
              <i class="add-icon icon-plus" onclick="showRl();"> 新增</i>
            </header>
            <div class="panel-body bio-graph-info">
              <div id="rlContainer" class="dlshouwen-grid-container"></div>
              <div id="rlToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
            </div>
          </section>

          <section class="panel wjhider" style="display: none;">
            <header class="panel-heading">
              文件信息
            </header>
            <div class="panel-body">

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">文件</label>
                <div class="col-sm-10">
                  <input type="text" maxlength="50" value="" placeholder="最多50个字"
                         id="wjName" certus-required class="form-control">
                  <!--<select name="wjName" id="wjName" class="form-control">-->
                    <!--<option value="">请选择</option>-->
                    <!--<option ng-repeat="d in wjList" value="{{d.productCode}}">{{d.productName}}</option>-->
                  <!--</select>-->
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">说明</label>
                <div class="col-sm-10">
                <textarea class="form-control" id="wjComments" autocomplete="off" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                          maxlength="120" placeholder="字数限制(120字以内)"></textarea>
                </div>
              </div>
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="hideWj();">取消</a>
                <a href="javascript:void(0);" class="button-next  btn btn-info wjSubmit">提交</a>
              </p>
            </div>
          </section>
          <section class="panel hideprobox">
            <header class="panel-heading add-heading">
              涉及文件
              <i class="add-icon icon-plus" onclick="showWj();"> 新增</i>
            </header>
            <div class="panel-body bio-graph-info">
              <div id="wjContainer" class="dlshouwen-grid-container"></div>
              <div id="wjToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
            </div>
          </section>

          <section class="panel">
            <header class="panel-heading">
              其他说明
            </header>
            <div class="panel-body bio-graph-info">

              <div class="form-group customerForm">

                <textarea name="clueApplyDesc" maxlength="120" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                  class="form-control">{{clueApplyDesc}}</textarea>

              </div>


            </div>
          </section>
          <section class="panel">
            <div class="panel-body">
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                <a href="javascript:closure();" class="button-back btn btn-danger" style="margin-left: 9px;">结束流程</a>
                <a href="javascript:void(0);" class="button-next  btn btn-success submit">确认提交</a>
              </p>
            </div>
          </section>


          <section class="panel">
            <div class="panel-heading">
              审批记录
            </div>
            <div class="panel-body">
              <ul class="tp-ulst" id="containerUl">
                <li>
                  <span>人员姓名</span><span>修改时间</span><span>处理结果</span>
                </li>
              </ul>
            </div>
          </section>
        </div>
      </div>
    </form>
  </section>
</section>
<!-- 当前页面js文件引入 -->
<script src="js/CertusFileUpload.js"></script>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/autocomplete/jquery.autocomplete.js"></script>
<script src="js/project/editClue.js"></script>
<script src="js/project/clueNodes.js"></script>
<script>
  //时间控件
  $('#datetime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#datetime-1').datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-2").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-3").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-4").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-5").datepicker({
    format: 'yyyy-mm-dd'
  });
  $("#datetime-6").datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#ctStartTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#ctEndTime').datepicker({
    format: 'yyyy-mm-dd'
  });

  $('#bsStartTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#bsEndTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#phStartTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#phEndTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#oStartTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#oEndTime').datepicker({
    format: 'yyyy-mm-dd'
  });
  $('#rlBeginTime').datepicker({
      format: 'yyyy-mm-dd'
  });
  $('#rlEndTime').datepicker({
      format: 'yyyy-mm-dd'
  });
</script>